<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>挂号管理</title>
</head>
<body>
	<div class="easyui-tabs" border="false" data-options="fit:true">
		<div title="门诊">
			<table id="hosp_patient" class="easyui-datagrid"  
			data-options=
				"toolbar:'#search_bar',
				pagination:true,striped:true,
				loadMsg:'数据加载中',singleSelect:true,
				fit:true,
				pageNumber:10,
				url:'load_menzhen'"> 
			    <thead>   
			        <tr>   
			            <th data-options="field:'patient_registration_id',width:'9%'">挂号号码</th>
			            <th data-options="field:'small_office_name',width:'8%'">科室</th>   
			            <th data-options="field:'doctor_name',width:'9%',halign:'center'">医生姓名</th> 
			            <th data-options="field:'patient_name',width:'9%',halign:'center'">病人姓名</th>  
			            <th data-options="field:'cradId',width:'14%',halign:'center'">诊疗卡号</th> 
			            <th data-options="field:'operation_time',width:'14%',halign:'center'">挂号时间</th>   
			            <th data-options="field:'visit_time',width:'14%',halign:'center'">看病时间</th>   
			            <th data-options="field:'pay_or_not',width:'7%',halign:'center'">是否缴费</th>
			            <th data-options="field:'status',width:'7%',halign:'center'">状态</th>
			            <th data-options="field:'caozuo',width:'8%',halign:'center',
			            	formatter:regist_caozuo">操作</th>
			            <th data-options="field:'doctor_id',width:'7%',hidden:true">医生id</th>
			        </tr>   
			    </thead>   
			</table> 
		</div>
		<div title="急诊">
			<table id="hosp_patient2" class="easyui-datagrid"  
			data-options=
				"toolbar:'#search_bar2',
				pagination:true,striped:true,
				loadMsg:'数据加载中',singleSelect:true,
				fit:true,
				pageNumber:10,
				url:'load_jizhen'"> 
			    <thead>   
			        <tr>   
			            <th data-options="field:'emer_registration_id',width:'9%'">挂号号码</th>
			            <th data-options="field:'small_office_name',width:'8%'">科室</th>   
			            <th data-options="field:'doctor_name',width:'9%',halign:'center'">医生姓名</th> 
			            <th data-options="field:'patient_name',width:'9%',halign:'center'">病人姓名</th>  
			            <th data-options="field:'cradId',width:'14%',halign:'center'">诊疗卡号</th> 
			            <th data-options="field:'operation_time',width:'14%',halign:'center'">挂号时间</th>   
			            <th data-options="field:'visit_time',width:'14%',halign:'center'">看病时间</th>   
			            <th data-options="field:'pay_or_not',width:'7%',halign:'center'">是否缴费</th>
			            <th data-options="field:'status',width:'7%',halign:'center'">状态</th>
			            <th data-options="field:'caozuo',width:'8%',halign:'center',
			            	formatter:regist_caozuo">操作</th> 
			        </tr>   
			    </thead>   
			</table> 
		</div>
	</div>
	
	<!-- 门诊搜索栏  -->
	<div id="search_bar" style="padding:10px 0px 5px 10px">
		<a onclick="check_all_patient()" class="easyui-linkbutton" data-options="iconCls:'icon-check-all'">查看所有</a>
		<div id="card_opration_time_start"
			data-options="prompt:'挂号起始时间',editable:false,buttons:buttons" 
			class="easyui-datebox"
			style="width: 100px; height: 26px;"></div>
		<div id="card_opration_time_end" 
			data-options="prompt:'挂号结束时间',editable:false,buttons:buttons"
			class="easyui-datebox" 
			style="width: 100px; height: 26px;"></div>
		<div id="card_visit_time_start"
			data-options="prompt:'就诊起始时间',editable:false,buttons:buttons" 
			class="easyui-datebox"
			style="width: 100px; height: 26px;"></div>
		<div id="card_visit_time_end" 
			data-options="prompt:'就诊结束时间',editable:false,buttons:buttons"
			class="easyui-datebox" 
			style="width: 100px; height: 26px;"></div>	
		<a onclick="check_patient_by_time()" class="easyui-linkbutton" data-options="iconCls:'icon-zoom'">时间搜索</a>  
		<!-- 选择条件搜索框 -->
		<input class="easyui-searchbox" style="width:200px"
			id="patient_searchbox" 
			data-options="menu:'#reg_condition',searcher:load_registration_by_condition,validType:'card_id'" />
		<select id="patient_pay_status" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false">  
			<option>缴费类型</option>
		    <option>已付</option>   
		    <option>未付</option></select>
		<select id="patient_sex" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false"> 
			<option>病人性别</option> 
		    <option>男</option>   
		    <option>女</option></select>
		<select id="patient_visit_status" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false"> 
			<option>就诊状态</option> 
		    <option>未看诊</option>   
		    <option>已看诊</option></select>
		<a onclick="check_patient_by_all_condition()"
			class="easyui-linkbutton" data-options="iconCls:'icon-zoom'">混合查询</a>
	</div>
	
	<!-- 急诊搜索栏  -->
	<div id="search_bar2" style="padding:10px 0px 5px 10px">
		<a onclick="check_all_patient2()" class="easyui-linkbutton" data-options="iconCls:'icon-check-all'">查看所有</a>
		<div id="card_opration_time_start2"
			data-options="prompt:'挂号起始时间',editable:false,buttons:buttons" 
			class="easyui-datebox"
			style="width: 100px; height: 26px;"></div>
		<div id="card_opration_time_end2" 
			data-options="prompt:'挂号结束时间',editable:false,buttons:buttons"
			class="easyui-datebox" 
			style="width: 100px; height: 26px;"></div>
		<div id="card_visit_time_start2"
			data-options="prompt:'就诊起始时间',editable:false,buttons:buttons" 
			class="easyui-datebox"
			style="width: 100px; height: 26px;"></div>
		<div id="card_visit_time_end2" 
			data-options="prompt:'就诊结束时间',editable:false,buttons:buttons"
			class="easyui-datebox" 
			style="width: 100px; height: 26px;"></div>	
		<a onclick="check_patient_by_time2()" class="easyui-linkbutton" data-options="iconCls:'icon-zoom'">时间搜索</a>  
		<!-- 选择条件搜索框 -->
		<input class="easyui-searchbox" style="width:200px"
			id="patient_searchbox2" 
			data-options="menu:'#reg_condition2',searcher:load_registration_by_condition2,validType:'card_id'" />
		<select id="patient_pay_status2" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false">  
			<option>缴费类型</option>
		    <option>已付</option>   
		    <option>未付</option></select>
		<select id="patient_sex2" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false"> 
			<option>病人性别</option> 
		    <option>男</option>   
		    <option>女</option></select>
		<select id="patient_visit_status2" name="status" 
			class="easyui-combobox" style="width: 80px"
			data-options="panelHeight:'auto',editable:false"> 
			<option>就诊状态</option> 
		    <option>未看诊</option>   
		    <option>已看诊</option></select>
		<a onclick="check_patient_by_all_condition2()"
			class="easyui-linkbutton" data-options="iconCls:'icon-zoom'">混合查询</a>
	</div>
	
	<!-- 搜索条件-->
	<div id="reg_condition" style="width:50px" data-options="onClick:on_select_menu2">
		<div data-options="name:'registration_number'" name="registration_number"
			id="reg_number">挂号号码</div>
		<div data-options="name:'patient_name'" name="patient_name"
			id="reg_patient_name">病人姓名</div>
		<div data-options="name:'age'" name="age"
			id="reg_age">病人年龄</div>
		<div data-options="name:'cradId'" name="cradId"
			id="reg_cradId">诊疗卡号</div>
		<div data-options="name:'idCard'" name="idCard"
			id="reg_idCard">病人身份证</div>
		<div data-options="name:'doctor_name'" name="doctor_name"
			id="reg_doctor_name">医生姓名</div>
	</div>
	<!-- 搜索条件-->
	<div id="reg_condition2" style="width:50px" data-options="onClick:on_select_menu3">
		<div data-options="name:'registration_number'" name="registration_number"
			id="reg_number2">挂号号码</div>
		<div data-options="name:'patient_name'" name="patient_name"
			id="reg_patient_name2">病人姓名</div>
		<div data-options="name:'age'" name="age" 
			id="reg_age2">病人年龄</div>
		<div data-options="name:'cradId'" name="cradId"
			id="reg_cradId2">诊疗卡号</div>
		<div data-options="name:'idCard'" name="idCard"
			id="reg_idCard2">病人身份证</div>
		<div data-options="name:'doctor_name'" name="doctor_name"
			id="reg_doctor_name2">医生姓名</div>
	</div>
	
	<!-- 改号 -->
	<!-- 弹出改号选择窗口-->
	<div class="easyui-window" id="change_reg_detail" title="改号窗口"
		style="width: 450px; height: 250px" href="to_change_reg"
		data-options="closed:'true',model:true,onLoad:fuzhi"></div>
</body>
</html>